package free.qq;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.util.ArrayList;
import java.util.List;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.border.EmptyBorder;

public class QuickFrame extends JFrame {

//	private JPanel contentPane;
	private JTabbedPane contentPane;
	private List<JPanel> listPanel;

	/**
	 * Create the frame.
	 */
	public QuickFrame() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JTabbedPane();
		listPanel = new ArrayList<JPanel>();
//		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
//		contentPane.setLayout(new BorderLayout(0, 0));
		listPanel.add(new JPanel(new GridLayout(2, 1)));
		listPanel.add(new JPanel(new GridLayout(2, 1)));
//		listPanel.add(new JPanel(new GridLayout(2, 1)));
		for (JPanel eachPanel : listPanel) {
			contentPane.addTab("111", null, eachPanel, "AAA" );
		}
		setContentPane(contentPane);
	}

}
